/** @defgroup U-blox Gsm modem
 * @{
 */
/*
 * Application\Inc\gsm_modem.h
 *
 *
 * Author: rex huang
 * Copyright (c) 2010 rex huang
 * All rights reserved.
 *
 * Modifications:
 */

#ifndef __GSM_MODEM_H_
#define __GSM_MODEM_H_

#ifdef  __cplusplus
extern "C" {
#endif		/* __cplusplus */

#include "Queue.h"
  

extern QBuf gGSM_TxQBuf;
extern QBuf gGSM_RxQBuf;


void GSM_PW_ON(void);	//fenris 20110607 test
void GSM_PW_OFF(void);	//fenris 20110607 test

void GSM_Init(void);

void Gsm_Ini_Task(void);
void Gsm_Task(void);

//Support to GPRS_U_BLOX
#define TELPHONE_NO	"0937711784" 
#define SMS_SEND_TIME	(60) 

#define MAX_LEN_PHONE_NO	(30)

void GSM_UART_IRQ_Tx(void);
void GSM_UART_IRQ_Rx(void);
unsigned short GsmUart_Read(char *buf, unsigned short count);
void GsmUart_Write(char *buf, unsigned short count);


void GsmUart_Send(char *buf);
void GsmUart_AT_CMGS(char *telNo,char *msg);
unsigned char GsmUart_Display(char *buf);


#ifdef __cplusplus
}
#endif	/* __cplusplus */
#endif	/* #ifndef __GSM_MODEM_H_ */
/** @} */